#!/usr/bin/env coffee

import MDBX from 'node-mdbx-dupsort'
import {join} from 'path'
import {HOME} from '../const/dir.coffee'

export default new MDBX({
  # path to DB directory
  path: join HOME,'mdbx'

  # maximum number of inner Dbis (default is 1)
  maxDbs: 32765

  # trade-off for speed and durability
  syncMode: 'safeNoSync'

  # Read-only mode (default is false)
  readOnly: false

  # Page size (default is 4096)
  pageSize: 65536

  # Key convert mode. Possible values:
  # 'string' (default) - all returned keys will be auto-converted from buffer to string
  # 'buffer' - returned keys will remain buffers
  keyMode: 'buffer'

  # Value convert mode. Possible values:
  # 'string' - all returned values will be auto-converted from buffer to string
  # 'buffer' (default) - returned values will remain buffers
  valueMode: 'buffer'

})



